package com.jwds.digital.bios.business.rpc.feign;

import com.jwds.digital.bios.business.core.infrastructure.vo.feign.FlowCurrentJobRespVO;
import com.jwds.digital.bios.business.rpc.feign.fallback.FlowCurrentJobFeignFallBack;
import com.jwds.tdc.framework.application.lib.BaseResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author hesong
 */
@FeignClient(name = "bios-flow", path = "/flow/current/job", fallback = FlowCurrentJobFeignFallBack.class)
public interface FlowCurrentJobFeign {

    @GetMapping("/exe/list")
    @ApiOperation(value = "当前正在运行流程列表")
    BaseResponse<List<FlowCurrentJobRespVO>> currentExeList();
}
